package com.lht.syt.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lht.syt.model.order.OrderInfo;
import com.lht.syt.vo.order.OrderCountQueryVo;
import com.lht.syt.vo.order.OrderQueryVo;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author lht
 * @version 1.0
 * @description: TODO
 * @date 2024/11/18 8:31
 */

@Service
public interface OrderInfoService extends IService<OrderInfo> {
    // 保存订单
    Long saveOrder(String scheduleId, Long patientId);

    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    OrderInfo getOrderInfo(Long id);

    Map<String, Object> show(Long orderId);

    /**
     * 取消订单
     * @param orderId
     */
    Boolean cancelOrder(Long orderId);

    /**
     * 发送就医提醒信息
     */
    void patientTips();

    /**
     * 日订单统计
     */
    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);
}
